package com.hfmall.mapper;

import com.hfmall.entity.HfAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liclo
 * @since 2021-08-12
 */
public interface HfAddressMapper extends BaseMapper<HfAddress> {

         List<HfAddress> getByUser(int userId);

         List<HfAddress> getAllHfAddress(); //查询所有收货地址信息

         HfAddress getDefault(int userId);

         void setDefault(int id);
}
